#include "InstructionFactory.h"
#include "DrawOneAdventureCardInstruction.h"
#include "FightTigerInstruction.h"
#include "WinTheGameInstruction.h"
#include "LoseOneLifeInstruction.h"
#include "RestartGameInstruction.h"
#include "FightBearInstruction.h"
#include "BecomeToadInstruction.h"
#include "Instruction.h"

Instruction * InstructionFactory::instructionFromString(std::string iName) 
{
	if(iName.compare("DrawOneAdventureCardInstruction") == 0)
		return new DrawOneAdventureCardInstruction;
	else if(iName.compare("FightTigerInstruction") == 0)
		return new FightTigerInstruction();
	else if(iName.compare("FightBearInstruction") == 0)
		return new FightBearInstruction;
	else if (iName.compare("LoseOneLifeInstruction") == 0)
		return new LoseOneLifeInstruction;
	else if (iName.compare("WinTheGameInstruction") == 0)
		return new WinTheGameInstruction;
	else if (iName.compare("RestartGameInstruction") == 0)
		return new RestartGameInstruction;
	else if (iName.compare("BecomeToadInstruction") == 0)
		return new BecomeToadInstruction;
	else 
		return 0;

}